package com.qqtech.qquan.order.model;

import java.math.BigDecimal;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.qqtech.core.frame.model.BaseDomain;

@SuppressWarnings("serial")
public class OrderSplit extends BaseDomain{

	//columns START
    /** 订单号(对应生成的订单号) */
	private java.lang.String orderNo;
    /** 供应商id */
	private java.lang.Integer supplierId;
    /** 供应商名称 */
	private java.lang.String supplierName;
    /** 卖家的userId(对应userBase的id) */
	private java.lang.Integer sellerId;
    /** 实际分账金额(元) */
	private BigDecimal value;
    /** 原本分账金额 */
	private BigDecimal originalValue;
    /** 分账比例,value=originalValue*rate(如本地供应商会有协议可以按多少折扣提现) */
	private BigDecimal rate;
    /** 分账状态:1-未分账;2-已分账 */
	private java.lang.Integer status;
	/** 分账费用类型:1-产品费;2-配送费 */
	private java.lang.Integer type;
	//columns END
	public OrderSplit(){
	}

	public OrderSplit( java.lang.Integer id ){
		this.id = id;
	}

	public void setOrderNo(java.lang.String orderNo) {
		this.orderNo = orderNo;
	}

	public java.lang.String getOrderNo() {
		return this.orderNo;
	}
	
	public void setSupplierId(java.lang.Integer supplierId) {
		this.supplierId = supplierId;
	}

	public java.lang.Integer getSupplierId() {
		return this.supplierId;
	}
	
	public void setSupplierName(java.lang.String supplierName) {
		this.supplierName = supplierName;
	}

	public java.lang.String getSupplierName() {
		return this.supplierName;
	}
	
	public void setSellerId(java.lang.Integer sellerId) {
		this.sellerId = sellerId;
	}

	public java.lang.Integer getSellerId() {
		return this.sellerId;
	}
	
	public void setValue(BigDecimal value) {
		this.value = value;
	}

	public BigDecimal getValue() {
		return this.value;
	}
	
	public void setOriginalValue(BigDecimal originalValue) {
		this.originalValue = originalValue;
	}

	public BigDecimal getOriginalValue() {
		return this.originalValue;
	}
	
	public void setRate(BigDecimal rate) {
		this.rate = rate;
	}

	public BigDecimal getRate() {
		return this.rate;
	}
	
	public void setStatus(java.lang.Integer status) {
		this.status = status;
	}

	public java.lang.Integer getStatus() {
		return this.status;
	}
	

	public java.lang.Integer getType() {
		return type;
	}

	public void setType(java.lang.Integer type) {
		this.type = type;
	}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this,
				ToStringStyle.MULTI_LINE_STYLE);
	}
}

